package com.second.app.thread.p_c_callwait;

/**
 * @Author soul yzg
 * @Date 2021/1/26 7:32
 * 努力学习 天天进步
 */
public class ThreadC extends Thread {

    private  Consumer consumer;

    public ThreadC(Consumer consumer){
        this.consumer =consumer;
    }

    @Override
    public void run() {
        while (true){
            consumer.getValue();
        }
    }
}
